const startAt = Date.now()
let count = 0

export default defineEventHandler(async (event) => {
  const body = await readBody(event)
  const test: string = body?.test ?? ''
  return {
    pageview: count++,
    /**
     * 起始时间
     */
    startAt,
    test,
  }
})
